package chess;

import java.util.List;

public class Tower extends Figure {

	Tower(int a, int b, int c)
	{
		super(a, b, c);
	}
	
	public List move()
	{
		for(int i=x;i<Board.width;i++)
		{
			listmove.add(new Area(x+1,y));
		}
		
		for(int i=x;i<Board.width;i--)
		{
			listmove.add(new Area(x-1,y));
		}
		
		for(int i=y;i<Board.height;i++)
		{
			listmove.add(new Area(x,y+1));
		}
		
		for(int i=y;i<Board.height;i--)
		{
			listmove.add(new Area(x,y-1));
		}
		
		return listmove;
	}



}
